package com.bsoft.gol.hbs.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import ctd.spring.boot.annotation.SsdevDao;
import hcn.base.MsgPushTaskLog;
import java.util.List;

/**
 * @description:手工消息推送任务操作日志表
 * @author: zhengcb10708
 * @create: 2021-09-01 16:28
 **/
@SsdevDao(serviceId = "msgPushTaskLogService")
public abstract class MsgPushTaskLogDao extends HibernateSupportDelegateDAO<MsgPushTaskLog> {
    public MsgPushTaskLogDao() {
        this.setKeyField("id");
    }

    @DAOMethod(sql = "from MsgPushTaskLog where id=:id")
    public abstract MsgPushTaskLog getMsgPushTaskLogById(@DAOParam("id") Long id);

    @DAOMethod(sql = "from MsgPushTaskLog where msgPushTaskId=:msgPushTaskId order by operationTime ")
    public abstract List<MsgPushTaskLog> findMsgPushTaskLogByTaskId(@DAOParam("msgPushTaskId") Long msgPushTaskId);
}
